* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*    Demands by Own Traits 
*		
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

use "AdsEmploymentMerged.dta", clear

* %%%% Simple regressions of demands by own characteristics%%%%
* %%%% Table 3 %%%%

* Number of demands
cap drop numdem
gen numdem=anyreligionwanted_r+anyethnicitywanted_et ///
+anystatuswanted_s+anylookswanted_l+anyeducwanted_e+anyforeignwanted_c+anyoccwanted

* Education
estimates clear 
areg anyeducwanted asker_age agesq ///
     if askermale==0 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m1	
	
areg anyeducwanted asker_age agesq ///
    if askermale==1 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m2 
	
* Number of demands 
areg numdem asker_age agesq ///
   if askermale==0 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m3 
	
areg numdem asker_age agesq ///
   if askermale==1 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m4 
	
* Looks 	
areg anylookswanted asker_age agesq ///
   if askermale==0 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m5 
	
areg anylookswanted asker_age agesq ///
   if askermale==1 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m6 

* Occupation
areg anyoccwanted asker_age agesq ///
   if askermale==0 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m7	
	
areg anyoccwanted asker_age agesq ///
    if askermale==1 & asker_age<50, ///
	absorb(year) vce(cluster year)	
estimates store m8	
				  

reg numdem 1.agegr#2.decade 2.agegr#2.decade ///
 if askerfemale==1 & asker_age<50  ///
,  vce(cluster year)  
estimates store z1 
	

* %%% Women demand less as they age more so than men %%%
	
areg anyoccwanted askerfemale femage  ///
  asker_age agesq  ///
   if asker_age<50, /// 
	absorb(year) vce(cluster year)		
	
estimates store b2 

areg anyeducwanted askerfemale femage  ///
  asker_age agesq  ///
   if asker_age<50, /// 
	absorb(year) vce(cluster year)

estimates store b4 
	
	
areg numdem askerfemale femage  ///
  asker_age agesq  ///
   if asker_age<50, /// 40
	absorb(year) vce(cluster year)
	
estimates store b6
	







